package com.example.mock.service.impl;

import com.example.mock.mapper.MockMapper;
import com.example.mock.service.MockService;
import com.example.postman.restful.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class MockServiceImpl implements MockService {
    @Autowired
    private MockMapper mapper;

    @Override
    public int add(User user) {
        return mapper.add(user);
    }

    @Override
    public int update(User user) {
        return mapper.update(user);
    }

    @Override
    public int delete(int userId) {
        return mapper.delete(userId);
    }

    @Override
    public User select(int userId) {
        return mapper.select(userId);
    }
}
